import Vue from "vue";
import Vuex from "vuex";
import getters from "./getters";
import app from "./modules/app";
import settings from "./modules/settings";
import menu from "./modules/menu";
import userAuth from "./modules/userAuth";
import dict from "./modules/dict";
import tenant from "./modules/tenant";
import authEntity from "./modules/authEntity";
import role from "./modules/role";
import domain from "./modules/domain";
import operLogger from "./modules/operLogger";
import ad from "./modules/ad";
import news from "./modules/news";
import tagsView from "@/store/modules/tagsView";
import residentialArea from "./modules/residentialArea";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    menu,
    userAuth,
    dict,
    tenant,
    authEntity,
    role,
    domain,
    operLogger,
    ad,
    news,
    tagsView,
    residentialArea,
  },
  getters,
});

export default store;
